import sys
import json
def save(d):
    f=open("stu.json","w")
    json.dump(d,f,ensure_ascii=False)
    f.close()
def read():
    d={}
    f = open("stu.json", "r")
    d=json.load(f)
    return d
if __name__ == '__main__':
    #d=dict({"name":"王承宇","age":17,"married":False,"phone":"1493892929","wechat":"299sss"})
    #save(d)
    d2=read()
    print("结婚了？",d2["married"])
    print("年龄：",d2.get("age"))
